package com.remon.quartz.dao;

import com.remon.quartz.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * 客户端调用处理表
 *
 * @author remon
 * @create 2018-08-15 23:30
 **/
@Repository
public interface CustomerResp extends JpaRepository<Customer, Long> {

    @Query("select T from Customer as T where T.appid = :id")
    Customer findByAppid(@Param("id") String id);
}
